//  TPColorSizeFont.h
//  注意看这个QMUICommonDefines
//  Created by wealthgrow on 2020/6/11.
//  Copyright © 2020 qimeng. All rights reserved.

#ifndef TPColorSizeFont_h
#define TPColorSizeFont_h

#define INPUT_CONTENT_MAX_LENGHT 500
#define INPUT_CONTENT_MAX200_LENGHT 200

// 状态栏和导航栏一共高度 @@@
#define kStatusBarAndNavigationBarHeight (kStatusBarHeight + NavigationBarHeight)
#define kStatusBarRealAndNavigationBarHeight (kStatusBarRealHeight + NavigationBarHeight)
// 状态栏高度常量 @@@
#define kStatusBarHeight StatusBarHeightConstant
// 实际状态栏高度，隐藏时为0
#define kStatusBarRealHeight StatusBarHeight

#define kTopSafeArea (SafeAreaInsetsConstantForDeviceWithNotch.top)
#define kBottomSafeArea (SafeAreaInsetsConstantForDeviceWithNotch.bottom) // Tabbar底部安全高度
#define kLeftSafeArea (SafeAreaInsetsConstantForDeviceWithNotch.left)
#define kRightSafeArea (SafeAreaInsetsConstantForDeviceWithNotch.right)

// 分割线高度
#define AL_SEPARATOR_LINE_HEIGHT (1.0f / [UIScreen mainScreen].scale)
// 屏幕比例适配
#define KRATE_414 (SCREEN_WIDTH / 414.0)
#define KRATE_414_LessThan(maxRate) (KRATE_414 > maxRate ? maxRate : KRATE_414)
// 从底部弹出时间、分类选择框的高度
#define kBottomPresentVH (SCREEN_HEIGHT * 0.4 > 320 ? 320 : (SCREEN_HEIGHT * 0.4 < 280 ? 280 : SCREEN_HEIGHT * 0.4))

#define EmptyDataSetVHeight 160

// 屏幕 rect
#define TP_SCREEN_RECT ([UIScreen mainScreen].bounds)

//屏幕分辨率
//#define SCREEN_RESOLUTION (SCREEN_WIDTH * SCREEN_WIDTH * ([UIScreen mainScreen].scale))


#define TPRandomColor [UIColor colorWithRed:arc4random() % 255 / 255.0 green:arc4random() % 255 / 255.0 blue:arc4random() % 255 / 255.0 alpha:arc4random() % 255 / 255.0]

#define TPColor(r, g, b) [UIColor colorWithRed:(r) / 255.0 green:(g) / 255.0 blue:(b) / 255.0 alpha:1.0]
#define TPAColor(r, g, b, a) [UIColor colorWithRed:(r) / 255.0 green:(g) / 255.0 blue:(b) / 255.0 alpha:a]

#define TPRGBColor(r, g, b) [UIColor colorWithRed:r green:g blue:b alpha:1.0]
#define TPARGBColor(r, g, b, a) [UIColor colorWithRed:r green:g blue:b alpha:a]

/* 导航栏默认背景色  */
#define TPNavBgImageDefault TPNavBgImage([UIColor whiteColor])
#define TPNavBgImage(color) [UIImage qmui_imageWithColor:color]

/* 导航栏默认分割线颜色  */
#define TPNavLineImageDefault TPNavLineImage(AL_COLOR_F5F9FA)
#define TPNavLineImage(color) [UIImage qmui_imageWithColor:color size:CGSizeMake(10, PixelOne) cornerRadius:0]

/* 导航栏默认Title颜色  */
#define TPNavTitleColor AL_COLOR_333333

/* 页面背景颜色  */
#define TPBackgroundColorF5F9FA AL_COLOR_F5F9FA
#define AL_COLOR_F5F9FA [UIColor colorWithHexString:@"#F5F9FA"]
#define TPBackgroundColorF5 [UIColor colorWithHexString:@"#F5F5F5"]
#define TPBackgroundColorF6 [UIColor colorWithHexString:@"#F6F6F6"]
// #define AL_COLOR_F6F6F6         [UIColor colorWithHexString:@"#F6F6F6"]

/* 常用蓝色  */
#define TPBlueColor [UIColor colorWithHexString:@"#1493E1"]
#define TPPCLightBlueColor [UIColor colorWithHexString:@"#2F27FF"]
#define TPPCBlueColor [UIColor colorWithHexString:@"#3238FF"]

/* 常用黄色  */
#define TPYellowColor [UIColor colorWithHexString:@"#FF9514"]
// #define AL_COLOR_FF9514         [UIColor colorWithHexString:@"#FF9514"]

#define AL_COLOR_FD551D [UIColor colorWithHexString:@"#FD551D"]
#define AL_COLOR_FD2C1D [UIColor colorWithHexString:@"#FD2C1D"]

/* 常用绿色  */
#define TPGreenColor AL_COLOR_20B787
/* 常用紫色  */
#define TPPurpleColor [UIColor colorWithHexString:@"#222A77"]
/* 常用深蓝色  */
#define TPDarkBlueColor [UIColor colorWithHexString:@"#222A77"]
/* 常用浅蓝色  */
#define TPLightBlueColor [UIColor colorWithHexString:@"#2F44BA"]
// #define AL_COLOR_2F44BA [UIColor colorWithHexString:@"#2F44BA"]

#define TPLightGrayColorE4 [UIColor colorWithHexString:@"#E4E4E4"]

/* 常用浅灰色  */
#define TPLightGrayColorE [UIColor colorWithHexString:@"#EEEEEE"]
// #define AL_COLOR_EEEEEE [UIColor colorWithHexString:@"#EEEEEE"]

/* 分割线颜色  */
#define TPSeparatorLineColorF1 [UIColor colorWithHexString:@"#F1F1F1"]
#define AL_COLOR_COMMON_LINE [UIColor colorWithHexString:@"#F1F1F1"]
#define AL_COLOR_F0F0F0 [UIColor colorWithHexString:@"F0F0F0"]

/* 常用黑色  */
#define TPBlackColor [UIColor colorWithHexString:@"#3D3D3D"]

/// 纯白色
#define AL_COLOR_ffffff [UIColor colorWithHexString:@"#ffffff" alpha:1]
#define AL_COLOR_000000 [UIColor colorWithHexString:@"#000000"]
#define AL_COLOR_333333 [UIColor colorWithHexString:@"#333333"]
/* 常用文字灰色, 数字小颜色重  */
#define TPTextGrayColor6 [UIColor colorWithHexString:@"#666666"]
/* 常用浅灰色  */
#define TPLightGrayColor9 [UIColor colorWithHexString:@"#999999"]
#define AL_COLOR_999999 [UIColor colorWithHexString:@"#999999"]
#define AL_COLOR_E6E6E6 [UIColor colorWithHexString:@"#E6E6E6"]
#define AL_COLOR_E44848 [UIColor colorWithHexString:@"#E44848"]
#define AL_COLOR_E1E2E6 [UIColor colorWithHexString:@"#E1E2E6"]

#define AL_COLOR_1D2129 [UIColor colorWithHexString:@"1D2129"]
#define AL_COLOR_888888 [UIColor colorWithHexString:@"888888"]
#define AL_COLOR_F53F3F [UIColor colorWithHexString:@"#F53F3F"]
#define AL_COLOR_E4E8EC [UIColor colorWithHexString:@"#E4E8EC"]
#define AL_COLOR_D8D8D8 [UIColor colorWithHexString:@"#D8D8D8"]
#define AL_COLOR_323233 [UIColor colorWithHexString:@"323233"]
#define AL_COLOR_969799 [UIColor colorWithHexString:@"969799"]
#define AL_COLOR_86909C [UIColor colorWithHexString:@"86909C"]
#define AL_COLOR_4E5969 [UIColor colorWithHexString:@"4E5969"]
#define AL_COLOR_91CC75 [UIColor colorWithHexString:@"91CC75"]
#define AL_COLOR_FAC858 [UIColor colorWithHexString:@"FAC858"]
#define AL_COLOR_66B4AD [UIColor colorWithHexString:@"66B4AD"]
#define AL_COLOR_EEF5FF [UIColor colorWithHexString:@"EEF5FF"]
#define AL_COLOR_212A27 [UIColor colorWithHexString:@"212A27"]
#define AL_COLOR_3D4442 [UIColor colorWithHexString:@"3D4442"]
#define AL_COLOR_9D8CF0 [UIColor colorWithHexString:@"9D8CF0"]
#define AL_COLOR_307AFB [UIColor colorWithHexString:@"307AFB"]
#define AL_COLOR_FFF5EC [UIColor colorWithHexString:@"#FFF5EC"]
#define AL_COLOR_E7E7E7 [UIColor colorWithHexString:@"#E7E7E7"]
#define AL_COLOR_005FCB [UIColor colorWithHexString:@"#005FCB"]
#define AL_COLOR_FF729A [UIColor colorWithHexString:@"#FF729A"]
#define AL_COLOR_DEEFF8 [UIColor colorWithHexString:@"#DEEFF8"]
#define AL_COLOR_895023 [UIColor colorWithHexString:@"#895023"]
#define AL_COLOR_6E47D3 [UIColor colorWithHexString:@"#6E47D3"]
#define AL_COLOR_D55746 [UIColor colorWithHexString:@"#D55746"]
#define AL_COLOR_F8F8F8 [UIColor colorWithHexString:@"#F8F8F8"]
#define AL_COLOR_9DA1A5 [UIColor colorWithHexString:@"#9DA1A5"]
#define AL_COLOR_4AC292 [UIColor colorWithHexString:@"#4AC292"]
#define AL_COLOR_F98354 [UIColor colorWithHexString:@"#F98354"]
#define AL_COLOR_BCC1CB [UIColor colorWithHexString:@"#BCC1CB"]
#define AL_COLOR_606060 [UIColor colorWithHexString:@"#606060"]
#define AL_COLOR_F7F8FA [UIColor colorWithHexString:@"#F7F8FA"]
#define AL_COLOR_D7D7D7 [UIColor colorWithHexString:@"#D7D7D7"]
#define AL_COLOR_F4F4F4 [UIColor colorWithHexString:@"#F4F4F4"]
#define AL_COLOR_4F4F4F [UIColor colorWithHexString:@"#4f4f4f"]
#define AL_COLOR_E8E8E8 [UIColor colorWithHexString:@"#E8E8E8"]
#define AL_COLOR_009844 [UIColor colorWithHexString:@"#009844"]
#define AL_COLOR_F34067 [UIColor colorWithHexString:@"#F34067"]
#define AL_COLOR_313133 [UIColor colorWithHexString:@"#313133"]
#define AL_COLOR_FF6431 [UIColor colorWithHexString:@"#FF6431"]
#define AL_COLOR_F7F7F7 [UIColor colorWithHexString:@"#F7F7F7"]
#define AL_COLOR_F2F2F2 [UIColor colorWithHexString:@"#F2F2F2"]
#define AL_COLOR_C2C2C2 [UIColor colorWithHexString:@"#C2C2C2"]
#define AL_COLOR_909DA6 [UIColor colorWithHexString:@"#909DA6"]
#define AL_COLOR_BCC7CE [UIColor colorWithHexString:@"#BCC7CE"]
#define AL_COLOR_75797D [UIColor colorWithHexString:@"#75797D"]
#define AL_COLOR_B3B7BF [UIColor colorWithHexString:@"#B3B7BF"]
#define AL_COLOR_FFB255 [UIColor colorWithHexString:@"#FFB255"]
#define AL_COLOR_EBEBEB [UIColor colorWithHexString:@"#EBEBEB"]
#define AL_COLOR_222222 [UIColor colorWithHexString:@"#222222"]
#define AL_COLOR_F4F8FF [UIColor colorWithHexString:@"#F4F8FF"]
#define AL_COLOR_CACACA [UIColor colorWithHexString:@"#CACACA"]
#define AL_COLOR_3388FF [UIColor colorWithHexString:@"#3388FF"]
#define AL_COLOR_4387FF [UIColor colorWithHexString:@"#4387FF"]
#define AL_COLOR_5D5D5D [UIColor colorWithHexString:@"#5D5D5D"]
#define AL_COLOR_FFF4E6 [UIColor colorWithHexString:@"#FFF4E6"]
#define AL_COLOR_FFFAF4 [UIColor colorWithHexString:@"#FFFAF4"]
#define AL_COLOR_B7B7B7 [UIColor colorWithHexString:@"#B7B7B7"]
#define AL_COLOR_834B2D [UIColor colorWithHexString:@"#834B2D"]
#define AL_COLOR_FFECE5 [UIColor colorWithHexString:@"#FFECE5"]
#define AL_COLOR_354A83 [UIColor colorWithHexString:@"#354A83"]
#define AL_COLOR_E6ECFF [UIColor colorWithHexString:@"#E6ECFF"]
#define AL_COLOR_595959 [UIColor colorWithHexString:@"#595959"]
#define AL_COLOR_FEE6C3 [UIColor colorWithHexString:@"#FEE6C3"]
#define AL_COLOR_7F8286 [UIColor colorWithHexString:@"#7F8286"]
#define AL_COLOR_F5F8FB [UIColor colorWithHexString:@"#F5F8FB"]
#define AL_COLOR_F65B5A [UIColor colorWithHexString:@"#F65B5A"]
#define AL_COLOR_FFC5C5 [UIColor colorWithHexString:@"#FFC5C5"]
#define AL_COLOR_C8C7C2 [UIColor colorWithHexString:@"#C8C7C2"]
#define AL_COLOR_20B787 [UIColor colorWithHexString:@"#20B787"]
#define AL_COLOR_FFB254 [UIColor colorWithHexString:@"#FFB254"]
#define AL_COLOR_FFCC8E [UIColor colorWithHexString:@"#FFCC8E"]
#define AL_COLOR_4FC4CF [UIColor colorWithHexString:@"#4FC4CF"]
#define AL_COLOR_FFEDD8 [UIColor colorWithHexString:@"#FFEDD8"]
#define AL_COLOR_F5F6F8 [UIColor colorWithHexString:@"#F5F6F8"]
#define AL_COLOR_FFF4E7 [UIColor colorWithHexString:@"#FFF4E7"]
#define AL_COLOR_F6E7D2 [UIColor colorWithHexString:@"#F6E7D2"]
#define AL_COLOR_ACACAC [UIColor colorWithHexString:@"ACACAC"]
#define AL_COLOR_FFEDDE [UIColor colorWithHexString:@"#FFEDDE"]

#define AL_COLOR_B3B3B3 [UIColor colorWithHexString:@"#B3B3B3"]
#define AL_COLOR_F7F8FB [UIColor colorWithHexString:@"#F7F8FB"]
#define AL_COLOR_F0F2F7 [UIColor colorWithHexString:@"#F0F2F7"]
#define AL_COLOR_E5E5E8 [UIColor colorWithHexString:@"#E5E5E8"]
#define AL_COLOR_FF9C55 [UIColor colorWithHexString:@"#FF9C55"]
#define AL_COLOR_FCFCFC [UIColor colorWithHexString:@"#FCFCFC"]
#define AL_COLOR_61A9FF [UIColor colorWithHexString:@"#61A9FF"]
#define AL_COLOR_E3E5E9 [UIColor colorWithHexString:@"#E3E5E9"]
#define AL_COLOR_FFEED9 [UIColor colorWithHexString:@"#FFEED9"]
#define AL_COLOR_FE8B11 [UIColor colorWithHexString:@"#FE8B11"]
#define AL_COLOR_D2D3D9 [UIColor colorWithHexString:@"#D2D3D9"]
#define AL_COLOR_DADFEB [UIColor colorWithHexString:@"#DADFEB"]
#define AL_COLOR_FFE6C7 [UIColor colorWithHexString:@"#FFE6C7"]
#define AL_COLOR_E2F5ED [UIColor colorWithHexString:@"#E2F5ED"]
#define AL_COLOR_FEE4DB [UIColor colorWithHexString:@"#FEE4DB"]
#define AL_COLOR_9A9A9A [UIColor colorWithHexString:@"#9A9A9A"]
#define AL_COLOR_FFFBF7 [UIColor colorWithHexString:@"#FFFBF7"]
#define AL_COLOR_F2F3F5 [UIColor colorWithHexString:@"#F2F3F5"]
#define AL_COLOR_4AC0AA [UIColor colorWithHexString:@"#4AC0AA"]
#define AL_COLOR_A9ACB0 [UIColor colorWithHexString:@"#A9ACB0"]
#define AL_COLOR_FFF8F6 [UIColor colorWithHexString:@"#FFF8F6"]
#define AL_COLOR_2468F2 [UIColor colorWithHexString:@"#2468F2"]
#define AL_COLOR_009B93 [UIColor colorWithHexString:@"#009B93"]
#define AL_COLOR_722ED1 [UIColor colorWithHexString:@"#722ED1"]
#define AL_COLOR_FF4C28 [UIColor colorWithHexString:@"#FF4C28"]
#define AL_COLOR_7F8797 [UIColor colorWithHexString:@"#7F8797"]
#define AL_COLOR_F8531C [UIColor colorWithHexString:@"#F8531C"]
#define AL_COLOR_FF6E3E [UIColor colorWithHexString:@"#FF6E3E"]
#define AL_COLOR_F1FAFB [UIColor colorWithHexString:@"#F1FAFB"]
#define AL_COLOR_D6F7EA [UIColor colorWithHexString:@"#D6F7EA"]
#define AL_COLOR_00CC7D [UIColor colorWithHexString:@"#00CC7D"]
#define AL_COLOR_FFF2E2 [UIColor colorWithHexString:@"#FFF2E2"]
#define AL_COLOR_FBDA9E [UIColor colorWithHexString:@"#FBDA9E"]
#define AL_COLOR_DEFCFF [UIColor colorWithHexString:@"#DEFCFF"]
#define AL_COLOR_99E8F0 [UIColor colorWithHexString:@"#99E8F0"]
#define AL_COLOR_FFEDDF [UIColor colorWithHexString:@"#FFEDDF"]
#define AL_COLOR_FFB914 [UIColor colorWithHexString:@"#FFB914"]
#define AL_COLOR_FD5923 [UIColor colorWithHexString:@"#FD5923"]
#define AL_COLOR_9E9E9E [UIColor colorWithHexString:@"#9E9E9E"]
#define AL_COLOR_D6D6D6 [UIColor colorWithHexString:@"#D6D6D6"]
#define AL_COLOR_DEDEDE [UIColor colorWithHexString:@"#DEDEDE"]
#define AL_COLOR_249EFF [UIColor colorWithHexString:@"#249EFF"]
#define AL_COLOR_94CFFF [UIColor colorWithHexString:@"#94CFFF"]
#define AL_COLOR_FFAA42 [UIColor colorWithHexString:@"#FFAA42"]
#define AL_COLOR_FFF6EC [UIColor colorWithHexString:@"#FFF6EC"]
#define AL_COLOR_DDDDDD [UIColor colorWithHexString:@"#DDDDDD"]
#define AL_COLOR_FF3535 [UIColor colorWithHexString:@"#FF3535"]
#define AL_COLOR_97A1DC [UIColor colorWithHexString:@"#97A1DC"]
#define AL_COLOR_FF8A63 [UIColor colorWithHexString:@"#FF8A63"]
#define AL_COLOR_FCF9EF [UIColor colorWithHexString:@"#FCF9EF"]
#define AL_COLOR_FFF9F3 [UIColor colorWithHexString:@"#FFF9F3"]
#define AL_COLOR_606367 [UIColor colorWithHexString:@"#606367"]
#define AL_COLOR_C2A48A [UIColor colorWithHexString:@"#C2A48A"]
#define AL_COLOR_D3D3D8 [UIColor colorWithHexString:@"#D3D3D8"]
#define AL_COLOR_F7E6D1 [UIColor colorWithHexString:@"#F7E6D1"]
#define AL_COLOR_C2C2CA [UIColor colorWithHexString:@"#C2C2CA"]
#define AL_COLOR_FEEBCA [UIColor colorWithHexString:@"#FEEBCA"]
#define AL_COLOR_FEE2A2 [UIColor colorWithHexString:@"#FEE2A2"]
#define AL_COLOR_FEEAC8 [UIColor colorWithHexString:@"#FEEAC8"]
#define AL_COLOR_F7812E [UIColor colorWithHexString:@"#F7812E"]
#define AL_COLOR_D3D3D3 [UIColor colorWithHexString:@"#D3D3D3"]
#define AL_COLOR_FFEFDA [UIColor colorWithHexString:@"#FFEFDA"]
#define AL_COLOR_969696 [UIColor colorWithHexString:@"#969696"]
#define AL_COLOR_CF2D14 [UIColor colorWithHexString:@"#CF2D14"]
#define AL_COLOR_E1E1E1 [UIColor colorWithHexString:@"#E1E1E1"]
#define AL_COLOR_147EFF [UIColor colorWithHexString:@"#147EFF"]
#define AL_COLOR_FF5858 [UIColor colorWithHexString:@"#FF5858"]
#define AL_COLOR_407DE0 [UIColor colorWithHexString:@"#407DE0"]
#define AL_COLOR_F7F8F9 [UIColor colorWithHexString:@"#F7F8F9"]
#define AL_COLOR_979797 [UIColor colorWithHexString:@"#979797"]
#define AL_COLOR_3F4041 [UIColor colorWithHexString:@"#3F4041"]
#define AL_COLOR_606062 [UIColor colorWithHexString:@"#606062"]
#define AL_COLOR_F9FAFE [UIColor colorWithHexString:@"#F9FAFE"]
#define AL_COLOR_373D4D [UIColor colorWithHexString:@"#373D4D"]
#define AL_COLOR_f58400 [UIColor colorWithHexString:@"f58400"]
#define AL_COLOR_FDFDC9 [UIColor colorWithHexString:@"FDFDC9"]
#define AL_COLOR_D5ECFE [UIColor colorWithHexString:@"D5ECFE"]
#define AL_COLOR_EBF3F7 [UIColor colorWithHexString:@"EBF3F7"]
#define AL_COLOR_6CE0B2 [UIColor colorWithHexString:@"6CE0B2"]
#define AL_COLOR_FA9878 [UIColor colorWithHexString:@"FA9878"]
#define AL_COLOR_0057FF [UIColor colorWithHexString:@"0057FF"]
#define AL_COLOR_E0E6F1 [UIColor colorWithHexString:@"E0E6F1"]

#define AL_MASK_BG [UIColor colorWithHexString:@"#000000" alpha:0.3]
#define AL_CoLor_Alpha75_000000 [UIColor colorWithHexString:@"#000000" alpha:0.75]
#define AL_CoLor_Alpha20_000000 [UIColor colorWithHexString:@"#000000" alpha:0.2]
#define AL_CoLor_Alpha90_ffffff [UIColor colorWithHexString:@"#ffffff" alpha:0.9]
#define AL_CoLor_Alpha04_ffffff [UIColor colorWithHexString:@"#ffffff" alpha:0.07]

#define AL_CoLor_Alpha68_D55746 [UIColor colorWithHexString:@"#D55746" alpha:0.68]
#define AL_CoLor_Alpha90_222331 [UIColor colorWithHexString:@"#222331" alpha:0.9]
#define AL_CoLor_Alpha50_000000 [UIColor colorWithHexString:@"#000000" alpha:0.5]
#define AL_CoLor_Alpha90_333333 [UIColor colorWithHexString:@"#333333" alpha:0.9]
#define AL_CoLor_Alpha77_41485D [UIColor colorWithHexString:@"#41485D" alpha:0.77]
#define AL_CoLor_Alpha30_FF9514 [UIColor colorWithHexString:@"#FF9514" alpha:0.3]
#define AL_CoLor_Alpha30_7db001 [UIColor colorWithHexString:@"#7db001" alpha:0.3]
#define AL_CoLor_Alpha21_FF9514 [UIColor colorWithHexString:@"#FF9514" alpha:0.21]
#define AL_CoLor_Alpha04_000000 [UIColor colorWithHexString:@"#000000" alpha:0.04]
#define AL_CoLor_Alpha20_0057FF [UIColor colorWithHexString:@"#0057FF" alpha:0.2]
#define AL_CoLor_Alpha10_FF9B42 [UIColor colorWithHexString:@"#FF9B42" alpha:0.1]
#define AL_CoLor_Alpha50_F0F0F0 [UIColor colorWithHexString:@"#F0F0F0" alpha:0.5]

#endif /* TPColorSizeFont_h */
